<?php
session_start();
include('config.php');
require_once('classes/class.jira.php');
//include("classes/connect.php");
//ini_set('display_errors', 'Off');

if(!isset($_SESSION["Juname"])){
	 
	echo '<meta http-equiv="refresh" content="300;url=index.php">';
}

function getuser($username,$pass,$project,$host){
		$config->username= $username;
		$config->password= $pass;
		$config->port= "";
		$config->host= $host;
		$query->project = $project;

		$queryIssue = new Jira($config);
		$array=$queryIssue->queryUser($query);
		$response = json_decode($array->responseBody);
		return $response;
		}

		
?>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JIRA COMMUNI</title>


</head>
<body>

Data:<br>
	<?php
		$config->username= $username;
		$config->password= $pass;
		$config->port= "";
		$config->host= $host;

		$queryIssue = new Jira($config);
		$array=$queryIssue->Test();
		$response = json_decode($array->responseBody);
		print "<pre>";
		print $response;
		print "</pre>";
	
	?>
</body>
</html>